package com.yihen.dto;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private boolean flag;
    private Object data;
    private String message;
    public Result(){}
    public Result(Boolean flag) {
        this.flag=flag;
    }
    public Result(String message) {
        this.flag=false;
        this.message = message;
    }
    public Result(Boolean flag, Object data) {
        this.flag=flag;
        this.data = data;
    }
    public Result(Boolean flag, String message) {
        this.flag=flag;
        this.message = message;
    }
}
